﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace FlexiCommerce.Configuration
{
    public class SecuritySection : ConfigurationSection
    {
        [ConfigurationProperty("marketingmanagers")]
        public SecurityAccess MarketingManagers
        {
            get { return (SecurityAccess)base["marketingmanagers"]; }
        }

        [ConfigurationProperty("catalogmanagers")]
        public SecurityAccess CatalogManagers
        {
            get { return (SecurityAccess)base["catalogmanagers"]; }
        }

        [ConfigurationProperty("ordermanagers")]
        public SecurityAccess OrderManagers
        {
            get { return (SecurityAccess)base["ordermanagers"]; }
        }

        [ConfigurationProperty("systemadministrators")]
        public SecurityAccess SystemAdministrators
        {
            get { return (SecurityAccess)base["systemadministrators"]; }
        }
        //[ConfigurationProperty("marketingmanagers")]
        //public SecurityAccess MarketingManagers
        //{
        //    get { return (SecurityAccess)base["marketingmanagers"]; }
        //    set { base["marketingmanagers"] = value; }
        //}

        //[ConfigurationProperty("catalogmanagers")]
        //public SecurityAccess CatalogManagers
        //{
        //    get { return (SecurityAccess)base["catalogmanagers"]; }
        //    set { base["catalogmanagers"] = value; }
        //}

        //[ConfigurationProperty("ordermanagers")]
        //public SecurityAccess OrderManagers
        //{
        //    get { return (SecurityAccess)base["ordermanagers"]; }
        //    set { base["ordermanagers"] = value; }
        //}

        //[ConfigurationProperty("systemadministrators")]
        //public SecurityAccess SystemAdministrators
        //{
        //    get { return (SecurityAccess)base["systemadministrators"]; }
        //    set { base["systemadministrators"] = value; }
        //}
    }
}
